package com.zby.lease.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum LeaseStatus implements BaseEnum{
    SIGNING(1,"签约待确定"),
    SIGNED(2,"已签约"),
    CANCELED(3,"已取消"),
    EXPIRED(4,"已到期"),
    WITHDRAWING(5,"退租待确定"),
    WITHDRAWN(6,"已退租"),
    RENEWING(7,"续约待确定");

    @EnumValue
    @JsonValue
    private Integer code;
    private String name;

    LeaseStatus(Integer code, String name){
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
   }

}
